﻿namespace EyeOpen.Samples.Wpf.Messaging
{
	using EyeOpen.Messaging;

	public partial class TextToolBar
	{
		public TextToolBar()
		{
			InitializeComponent();
		}

		private void BoldButtonClick(object sender, System.Windows.RoutedEventArgs e)
		{
			MessageBroker.Send(new ActionMessage("bold"));
		}

		private void ItalicButtonClick(object sender, System.Windows.RoutedEventArgs e)
		{
			MessageBroker.Send(new ActionMessage("italic"));
		}

		private void UnderlineButtonClick(object sender, System.Windows.RoutedEventArgs e)
		{
			MessageBroker.Send(new ActionMessage("underline"));
		}
	}
}